package cn.edu.ccut.refactor;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.TextFileChange;
import org.eclipse.swt.widgets.Display;

/**
 * 
 * @author Bai Yucheng 2008-1-10
 * 
 */
public class SaturnTextFileChange extends TextFileChange {

	public SaturnTextFileChange(String s, IFile ifile) {
		super(s, ifile);
		setTextType("xml");
	}

	public Change perform(IProgressMonitor iprogressmonitor)
			throws CoreException {
		Change change = super.perform(iprogressmonitor);
		return change;
	}

	public static Display getStandardDisplay() {
		Display display = Display.getCurrent();
		if (display == null)
			display = Display.getDefault();
		return display;
	}
}
